package com.haishuibutian.kafkaproducer.config;

import org.apache.kafka.clients.KafkaClient;
import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KafkaInitialConfiguration {

    @Bean
    public NewTopic initialTopic(){

        return new NewTopic("testTopic",8,(short) 1);
    }
}
